<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\FormRequest;

class HandleRefundRequest extends FormRequest
{
  
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'agree'=>['required','boolean'],
            // 条件必选规则 拒绝退款时需要输入拒绝理由
            'reason'=>['required_if:agree,false',]
        ];
    }
}
